﻿<Window x:Class="Xpom_Xpum__Integrated_Development_Environment.MainWindowView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:properties="clr-namespace:Xpom_Xpum__Integrated_Development_Environment.Properties"
        xmlns:res="clr-namespace:Xpom_Xpum__Integrated_Development_Environment.Resource" xmlns:my="clr-namespace:Xpom_Xpum__Integrated_Development_Environment.View.Controls"
        Left="{Binding Source={x:Static properties:Settings.Default},
                               Path=MainWindowLeft, Mode=TwoWay}"
        Top="{Binding Source={x:Static properties:Settings.Default},
                               Path=MainWindowTop, Mode=TwoWay}"
        Width="{Binding Source={x:Static properties:Settings.Default},
                               Path=MainWindowWidth, Mode=TwoWay}"
        Height="{Binding Source={x:Static properties:Settings.Default},
                               Path=MainWindowHeight, Mode=TwoWay}"
        Title="Xpom-Xpum! Integrated Development Environment" Closed="Window_Closed" Icon="/Xpom-Xpum!%20Integrated%20Development%20Environment;component/32x32.ico" StateChanged="Window_StateChanged">
    <Grid>
        <DockPanel Name="dockPanel1">
            <my:MenuView DockPanel.Dock="Top" />
            <ToolBarTray Height="Auto" Name="toolBarTray1" VerticalAlignment="Top" DockPanel.Dock="Top" Orientation="Horizontal">
                <ToolBar HorizontalAlignment="Stretch" Height="25">
                    <Button Height="22" Width="22" Margin="0,-2,0,0" Click="Button_Click" ToolTip="{x:Static res:Resource.FileNewMenuItemText}">
                        <Image Source="..\Icons\New16.png" Height="16" Width="16" />
                    </Button>
                    <Button Height="22" Width="22" Margin="0,-2,0,0" ToolTip="{x:Static res:Resource.FileOpenMenuItemText}" Click="Button_Click_1">
                        <Image Source="..\Icons\Open16.png" Height="16" Width="16" />
                    </Button>
                    <Button Height="22" Width="22" Margin="0,-2,0,0" ToolTip="{x:Static res:Resource.FileSaveMenuItemText}" Click="Button_Click_2">
                        <Image Source="..\Icons\Save16.png" Height="16" Width="16" />
                    </Button>
                    <Button Height="22" Width="22" Margin="0,-2,0,0" ToolTip="{x:Static res:Resource.FileSaveAllMenuItemText}" Click="Button_Click_3">
                        <Image Source="..\Icons\SaveAs16.png" Height="16" Width="16" />
                    </Button>
                    <Separator />

                    <Button Height="22" Width="22" Margin="0,-2,0,0" ToolTip="Cut" Click="Button_Click_4">
                        <Image Source="..\Icons\Cut16.png" Height="16" Width="16" />
                    </Button>
                    <Button Height="22" Width="22" Margin="0,-2,0,0" ToolTip="Copy" Click="Button_Click_5">
                        <Image Source="..\Icons\Copy16.png" Height="16" Width="16"/>
                    </Button>
                    <Button Height="22" Width="22" Margin="0,-2,0,0" ToolTip="Paste" Click="Button_Click_6">
                        <Image Source="..\Icons\Paste16.png" Height="16" Width="16"/> 
                    </Button>
                    <Separator />

                    <Button Height="22" Width="22" Margin="0,-2,0,0" ToolTip="Undo" Click="Button_Click_7">
                        <Image Source="..\Icons\Undo16.png" Height="16" Width="16"/>
                    </Button>
                    <Button Height="22" Width="22" Margin="0,-2,0,0" ToolTip="Redo" Click="Button_Click_8">
                        <Image Source="..\Icons\Redo16.png" Height="16" Width="16" />
                    </Button>
                    <Separator />

                    <Button Height="22" Width="22" Margin="0,-2,0,0" ToolTip="{x:Static res:Resource.RunRunWithNoDebugMenuItemText}" Click="Button_Click_9">
                        <Image Source="..\Icons\Run16.png" Height="16" Width="16"/>
                    </Button>
                    <Button Height="22" Width="22" Margin="0,-2,0,0" IsEnabled="False" Visibility="Collapsed" ToolTip="Stop" Click="Button_Click_10">
                        <Image Source="..\Icons\Paste16.png" Height="16" Width="16"/>
                    </Button>
                    <ComboBox Width="100" IsEditable="False" SelectedIndex="0" Focusable="False" Background="#FFF0F0F8" BorderBrush="#FF828200" StaysOpenOnEdit="False">
                        <ComboBoxItem Content="No Debug" />
                    </ComboBox>
                </ToolBar>
            </ToolBarTray>
            <Grid Name="grid1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="170" />
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>
                <my:ProjectExplorerView x:Name="pev" Grid.Column="0" />
                <GridSplitter Grid.Column="1" Grid.RowSpan="2" Width="5"
                      VerticalAlignment="Stretch" HorizontalAlignment="Center"></GridSplitter>
                <my:TabControlView Grid.Column="2" MouseDown="TabControlView_MouseDown" /> 
            </Grid>
        </DockPanel>
    </Grid>
</Window>
